package videopath

import (
	"fmt"
	"path/filepath"
	//"syscall"
)

// 获取电影视频文件路径
func GetMovieVideoPath(number uint32, Ext []uint16) string {

	if len(Ext) > 0 && Ext[0] != 0 {
		// 携带文件后缀
		return filepath.Join("MOVIE",
			fmt.Sprintf("%d", number),
			"1234561.",
			UTF16ToString(Ext))
	} else {
		// 不携带文件后缀
		return filepath.Join("MOVIE",
			fmt.Sprintf("%d", number),
			"1234561")
	}

}
